package com.alinkeji.user.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.alinkeji.feign.client.OrderControllerFeignClient;

@RestController
@RequestMapping("/user/api")
public class UserController {
	
	@Autowired
	private OrderControllerFeignClient orderControllerFeignClient;

	@RequestMapping("/getUser")
	public Object getUser(){
		return "my name is linrol";
	}
	
	@RequestMapping("/buy")
	public Object buy(){
		return orderControllerFeignClient.saveOrder();
	}
}
